<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  
  <title>摆渡人的博客</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta property="og:type" content="website">
<meta property="og:title" content="摆渡人的博客">
<meta property="og:url" content="http://example.com/index.html">
<meta property="og:site_name" content="摆渡人的博客">
<meta property="og:locale" content="en_US">
<meta property="article:author" content="摆渡人">
<meta name="twitter:card" content="summary">
  
    <link rel="alternate" href="/atom.xml" title="摆渡人的博客" type="application/atom+xml">
  
  
    <link rel="shortcut icon" href="/favicon.png">
  
  
    
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/typeface-source-code-pro@0.0.71/index.min.css">

  
  
<link rel="stylesheet" href="/css/style.css">

  
    
<link rel="stylesheet" href="/fancybox/jquery.fancybox.min.css">

  
<meta name="generator" content="Hexo 5.3.0"></head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/" id="logo">摆渡人的博客</a>
      </h1>
      
        <h2 id="subtitle-wrap">
          <a href="/" id="subtitle">Ferryman&#39;s space</a>
        </h2>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/">Home</a>
        
          <a class="main-nav-link" href="/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="Search"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="http://example.com"></form>
      </div>
    </div>
  </div>
</header>

      <div class="outer">
        <section id="main">
  
    <article id="post-article" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
  <div class="article-meta">
    <a href="/2021/02/18/article/" class="article-date">
  <time class="dt-published" datetime="2021-02-18T03:36:49.000Z" itemprop="datePublished">2021-02-18</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="p-name article-title" href="/2021/02/18/article/">article</a>
    </h1>
  

      </header>
    
    <div class="e-content article-entry" itemprop="articleBody">
      
        <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
  <script id="MathJax-script" async
          src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js">
  </script>
      
    </div>
    <footer class="article-footer">
      <a data-url="http://example.com/2021/02/18/article/" data-id="cklabha2t0000m4vrc49kck69" data-title="article" class="article-share-link">Share</a>
      
      
      
    </footer>
  </div>
  
</article>



  
    <article id="post-hello-world" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
  <div class="article-meta">
    <a href="/2021/02/18/hello-world/" class="article-date">
  <time class="dt-published" datetime="2021-02-17T23:39:09.903Z" itemprop="datePublished">2021-02-18</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="p-name article-title" href="/2021/02/18/hello-world/">Hello World</a>
    </h1>
  

      </header>
    
    <div class="e-content article-entry" itemprop="articleBody">
      
        <p>Welcome to <a target="_blank" rel="noopener" href="https://hexo.io/">Hexo</a>! This is your very first post. Check <a target="_blank" rel="noopener" href="https://hexo.io/docs/">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a target="_blank" rel="noopener" href="https://hexo.io/docs/troubleshooting.html">troubleshooting</a> or you can ask me on <a target="_blank" rel="noopener" href="https://github.com/hexojs/hexo/issues">GitHub</a>.</p>
<h2 id="Quick-Start"><a href="#Quick-Start" class="headerlink" title="Quick Start"></a>Quick Start</h2><h3 id="Create-a-new-post"><a href="#Create-a-new-post" class="headerlink" title="Create a new post"></a>Create a new post</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo new <span class="string">&quot;My New Post&quot;</span></span><br></pre></td></tr></table></figure>
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/writing.html">Writing</a></p>
<h3 id="Run-server"><a href="#Run-server" class="headerlink" title="Run server"></a>Run server</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo server</span><br></pre></td></tr></table></figure>
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/server.html">Server</a></p>
<h3 id="Generate-static-files"><a href="#Generate-static-files" class="headerlink" title="Generate static files"></a>Generate static files</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo generate</span><br></pre></td></tr></table></figure>
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/generating.html">Generating</a></p>
<h3 id="Deploy-to-remote-sites"><a href="#Deploy-to-remote-sites" class="headerlink" title="Deploy to remote sites"></a>Deploy to remote sites</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo deploy</span><br></pre></td></tr></table></figure>
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/one-command-deployment.html">Deployment</a></p>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://example.com/2021/02/18/hello-world/" data-id="cklaavztc0006bsvrhff9f2ei" data-title="Hello World" class="article-share-link">Share</a>
      
      
      
    </footer>
  </div>
  
</article>



  
    <article id="post-accessible-math-content-0" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
  <div class="article-meta">
    <a href="/2021/02/17/accessible-math-content-0/" class="article-date">
  <time class="dt-published" datetime="2021-02-17T15:00:00.000Z" itemprop="datePublished">2021-02-17</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="p-name article-title" href="/2021/02/17/accessible-math-content-0/">可访问的数学内容：前言</a>
    </h1>
  

      </header>
    
    <div class="e-content article-entry" itemprop="articleBody">
      
        <p>你好，欢迎你打开这篇文章。我假设你是一名希望了解如何使用屏幕阅读器阅读数学内容的视障者，或者一名想要了解如何帮助使用屏幕阅读器的用户优化数学内容的网站设计者、文章作者、开发者。</p>
<p>对于很多视力正常的人来说，数学本就不是一门令人愉快的学科，而作为一名视障者，如果他们只接受九年义务教育，那也意味着他们有相当不短的一段时间将与数学打交道。</p>
<p>当然，如果有那么一小撮视障者，恰好有那么一丢丢喜欢数学，又恰好听说过大数学家莱昂哈德·欧拉的故事，他们是否会产生能深入学习数学的想法呢？</p>
<p>为了让视障者能通过互联网浏览数学内容，诸如<a target="_blank" rel="noopener" href="http://baike.baidu.com/item/%E6%95%B0%E5%AD%A6%E7%BD%AE%E6%A0%87%E8%AF%AD%E8%A8%80">MathML</a>这样的数学标记语言应运而生，也有更方便书写的<a target="_blank" rel="noopener" href="http://baike.baidu.com/item/LaTeX/1212106">LaTeX</a>。</p>
<p>下面的内容，我将结合使用旁白(VoiceOver)，介绍如何借助屏幕阅读器来朗读数学内容，你也可以使用旁白或 NVDA 等屏幕阅读器来体验。</p>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://example.com/2021/02/17/accessible-math-content-0/" data-id="cklaavzt80003bsvr74e58u6y" data-title="可访问的数学内容：前言" class="article-share-link">Share</a>
      
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E5%8F%AF%E8%AE%BF%E9%97%AE%E7%9A%84%E6%95%B0%E5%AD%A6%E5%86%85%E5%AE%B9/" rel="tag">可访问的数学内容</a></li></ul>

    </footer>
  </div>
  
</article>



  
    <article id="post-accessible-math-content-1" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
  <div class="article-meta">
    <a href="/2021/02/17/accessible-math-content-1/" class="article-date">
  <time class="dt-published" datetime="2021-02-16T16:00:00.000Z" itemprop="datePublished">2021-02-17</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="p-name article-title" href="/2021/02/17/accessible-math-content-1/">可访问的数学内容：有理数</a>
    </h1>
  

      </header>
    
    <div class="e-content article-entry" itemprop="articleBody">
      
        <p>欢迎来到数学内容朗读第一站——有理数。</p>
<p>无线循环小数、整数、分数，都是有理数，这也是我们阅读数学内容时较为常见的数字类型。<br>接下来我将使用三种方式来分别写几个有理数，分别用口语描述，不用MathJax，以及使用<a target="_blank" rel="noopener" href="https://mathjax.org/">MathJax</a>。</p>
<table>
<thead>
<tr>
<th align="center">口语</th>
<th align="center">不用 MathJax</th>
<th align="center">使用 MathJax</th>
</tr>
</thead>
<tbody><tr>
<td align="center">十二</td>
<td align="center">12</td>
<td align="center">\(12\)</td>
</tr>
<tr>
<td align="center">负一</td>
<td align="center">-1</td>
<td align="center">\(-1\)</td>
</tr>
<tr>
<td align="center">四分之一</td>
<td align="center">1/4</td>
<td align="center">\(\frac{1}{4}\)</td>
</tr>
<tr>
<td align="center">零点一四二八五七循环</td>
<td align="center">抱歉这个不知道该怎么写</td>
<td align="center">\(0.\dot{142857}\)</td>
</tr>
<tr>
<td align="center">零点一二三三二三三二三三…循环</td>
<td align="center">0.1233233233233…</td>
<td align="center">\(0.1\dot{233}\)</td>
</tr>
<tr>
<td align="center">“负一”的平方</td>
<td align="center">(-1)^2</td>
<td align="center">\((-1)^2\)</td>
</tr>
<tr>
<td align="center">一的平方的相反数</td>
<td align="center">-1^2</td>
<td align="center">\(-1^2\)</td>
</tr>
</tbody></table>
<p>注意表格最后两行，前者是负一的平方，后者是一的平方的相反数，两者计算得出的结果不同，前者为1，后者为-1，那么如何区分它们呢？</p>
<p>以旁白的朗读为例，旁白在朗读前者的 MathJax 形式时读出的内容大致为：<br>负一空白的平方，数学<br>后者则为：<br>负一的平方，数学<br>旁白在朗读每一个数学元素的最后都会加上“数学”两个字，以表明其为数学元素。这里的空白，读者可以理解为“括号”，从而区分<em>(-1)<sup>2</sup></em>与<em>-1<sup>2</sup></em>。</p>
<h3 id="小型表达式"><a href="#小型表达式" class="headerlink" title="小型表达式"></a>小型表达式</h3><p>也可以利用旁白的“转子”功能，在焦点位于数学元素上时，双指顺时针或逆时针在屏幕上旋转，找到<em>小型表达式</em>，上下滑动来浏览。<br>我们可以利用<em>小型表达式</em>来区分 \(-1^2\) 与 \((-1)^2\)。<br>在利用小型表达式浏览前者时，1与平方是放在一起读出的，这是因为平方之作用于1这一个数字上，因此将1与平方一起读出，读作<em>“1的平方”</em>，当使用小型表达式浏览后者时，平方操作作用于<em>(-1)</em>这一个整体，但我们会发现，这个数字中的负号没有和1放在一起，这是因为负号的优先级不够高。</p>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://example.com/2021/02/17/accessible-math-content-1/" data-id="cklaavzt90004bsvr7d1cdkxn" data-title="可访问的数学内容：有理数" class="article-share-link">Share</a>
      
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E5%8F%AF%E8%AE%BF%E9%97%AE%E7%9A%84%E6%95%B0%E5%AD%A6%E5%86%85%E5%AE%B9/" rel="tag">可访问的数学内容</a></li></ul>

    </footer>
  </div>
  
</article>



  
    <article id="post-tamper-scripts-summary" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
  <div class="article-meta">
    <a href="/2021/02/08/tamper-scripts-summary/" class="article-date">
  <time class="dt-published" datetime="2021-02-07T16:00:00.000Z" itemprop="datePublished">2021-02-08</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="p-name article-title" href="/2021/02/08/tamper-scripts-summary/">自用油猴脚本</a>
    </h1>
  

      </header>
    
    <div class="e-content article-entry" itemprop="articleBody">
      
        <p>链接如下：<br><a target="_blank" rel="noopener" href="https://happycoder939.github.io/scripts/enableAriaLiveForSubtitle.user.js">B站外挂字幕</a><br>end</p>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://example.com/2021/02/08/tamper-scripts-summary/" data-id="cklaavzt60002bsvr8s6mg8nm" data-title="自用油猴脚本" class="article-share-link">Share</a>
      
      
      
    </footer>
  </div>
  
</article>



  
    <article id="post-cross-domain-requests" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
  <div class="article-meta">
    <a href="/2020/12/21/cross-domain-requests/" class="article-date">
  <time class="dt-published" datetime="2020-12-20T16:00:00.000Z" itemprop="datePublished">2020-12-21</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="p-name article-title" href="/2020/12/21/cross-domain-requests/">一个解决浏览器JS无法请求跨域资源的方法</a>
    </h1>
  

      </header>
    
    <div class="e-content article-entry" itemprop="articleBody">
      
        <p>你好，我是一个HTTP请求，来自<em>A网站</em>，我想通过JS原生Ajax向<em>B网站</em>请求一个JSON数据，希望一切顺利。</p>
<p>请求被成功发出，到达服务器，并取回数据，正当即将返回数据时，被浏览器拦了下来：</p>
<p>浏览器：请留步，由于<a target="_blank" rel="noopener" href="https://baike.baidu.com/item/%E5%90%8C%E6%BA%90%E7%AD%96%E7%95%A5">同源策略</a>的限制，你不能把数据返回给用户，而且似乎服务器那边也没有相应的header来允许你请求数据吧。</p>
<p>之后请求找到了script元素，向它诉苦：<br>请求：我想跨域请求一个JSON数据，但浏览器阻止了我返回数据，我知道你神通广大，法力无边，能跨域请求数据，你能不能帮帮我？</p>
<p>script元素听了，把头一昂，说：“小意思，只要服务器那边配合就可以。”</p>
<p>服务器隔空喊话：现在，你只要通过<a target="_blank" rel="noopener" href="http://xxx.com/a/data.jsonp?callback=someCallback%EF%BC%8C%E6%8A%8A%E4%BD%A0%E5%A1%9E%E8%BF%9Bscript%E5%85%83%E7%B4%A0%E9%87%8C%EF%BC%8C%E5%92%8C%E5%AE%83%E4%B8%80%E8%B5%B7%E8%BF%87%E6%9D%A5%E6%89%BE%E6%88%91%EF%BC%8C%E6%88%91%E5%B0%B1%E5%8F%AF%E4%BB%A5%E8%B0%83%E7%94%A8someCallback()%E5%87%BD%E6%95%B0%EF%BC%8C%E8%AE%A9%E4%BD%A0%E5%A4%84%E7%90%86%E8%BF%94%E5%9B%9E%E7%9A%84%E6%95%B0%E6%8D%AE%E4%BA%86%E3%80%82">http://xxx.com/a/data.jsonp?callback=someCallback，把你塞进script元素里，和它一起过来找我，我就可以调用someCallback()函数，让你处理返回的数据了。</a></p>
<p>最终，请求成功完成。自此之后，请求对script元素一见钟情，每天和它形影不离，恨不得粘在一起，（实际上就是这样，请求为了把自己塞进script，脱去了自己原来的请求对象的衣服，化为url，住在了script元素的心里——这颗心，就是src属性）。</p>
<p>包括img标签在内的拥有src属性的元素酸了，我们也可以啊啊啊！！！</p>
<p>END<br>只是随便写写，如果想要详细了解关于跨域请求的知识，请自行搜索。</p>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://example.com/2020/12/21/cross-domain-requests/" data-id="cklaavzt40001bsvrh24ddv3c" data-title="一个解决浏览器JS无法请求跨域资源的方法" class="article-share-link">Share</a>
      
      
      
    </footer>
  </div>
  
</article>



  
    <article id="post-hello-world" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
  <div class="article-meta">
    <a href="/2020/12/03/hello-world/" class="article-date">
  <time class="dt-published" datetime="2020-12-02T16:00:00.000Z" itemprop="datePublished">2020-12-03</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="p-name article-title" href="/2020/12/03/hello-world/">使用各种编程语言编写Hello World</a>
    </h1>
  

      </header>
    
    <div class="e-content article-entry" itemprop="articleBody">
      
        <h1 id="Python3"><a href="#Python3" class="headerlink" title="Python3:"></a>Python3:</h1><figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">print(<span class="string">&quot;Hello World!&quot;</span>)</span><br></pre></td></tr></table></figure>
<h1 id="javascript"><a href="#javascript" class="headerlink" title="javascript:"></a>javascript:</h1><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">alert(&quot;Hello World!&quot;);</span><br></pre></td></tr></table></figure>
<h1 id="MarkDown（好像不算编程语言）"><a href="#MarkDown（好像不算编程语言）" class="headerlink" title="MarkDown（好像不算编程语言）:"></a>MarkDown（好像不算编程语言）:</h1><h4 id="Hello-World"><a href="#Hello-World" class="headerlink" title="Hello World!"></a>Hello World!</h4><hr>
<p>END</p>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://example.com/2020/12/03/hello-world/" data-id="cklaavzsx0000bsvr944zejac" data-title="使用各种编程语言编写Hello World" class="article-share-link">Share</a>
      
      
      
    </footer>
  </div>
  
</article>



  


</section>
        
          <aside id="sidebar">
  
    

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tags</h3>
    <div class="widget">
      <ul class="tag-list" itemprop="keywords"><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%8F%AF%E8%AE%BF%E9%97%AE%E7%9A%84%E6%95%B0%E5%AD%A6%E5%86%85%E5%AE%B9/" rel="tag">可访问的数学内容</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tag Cloud</h3>
    <div class="widget tagcloud">
      <a href="/tags/%E5%8F%AF%E8%AE%BF%E9%97%AE%E7%9A%84%E6%95%B0%E5%AD%A6%E5%86%85%E5%AE%B9/" style="font-size: 10px;">可访问的数学内容</a>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Archives</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/02/">February 2021</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/12/">December 2020</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Recent Posts</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/2021/02/18/article/">article</a>
          </li>
        
          <li>
            <a href="/2021/02/18/hello-world/">Hello World</a>
          </li>
        
          <li>
            <a href="/2021/02/17/accessible-math-content-0/">可访问的数学内容：前言</a>
          </li>
        
          <li>
            <a href="/2021/02/17/accessible-math-content-1/">可访问的数学内容：有理数</a>
          </li>
        
          <li>
            <a href="/2021/02/08/tamper-scripts-summary/">自用油猴脚本</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      
      &copy; 2021 摆渡人<br>
      Powered by <a href="https://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>

    </div>
    <nav id="mobile-nav">
  
    <a href="/" class="mobile-nav-link">Home</a>
  
    <a href="/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    


<script src="/js/jquery-3.4.1.min.js"></script>



  
<script src="/fancybox/jquery.fancybox.min.js"></script>




<script src="/js/script.js"></script>





  </div>
</body>
</html>